




//
//  ApplyRefundFirst.m
//  XJMCustomer
//
//  Created by Mr.hu on 2017/10/23.
//  Copyright © 2017年 Mr.hu. All rights reserved.
//

#import "ApplyRefundFirst.h"
#import "RefundTVBCell.h"
#import "ApplyRefundSecond.h"

@interface ApplyRefundFirst ()<UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UILabel *RefundItemLab;
@property (weak, nonatomic) IBOutlet UILabel *RefundTimeMoney;
@property (weak, nonatomic) IBOutlet UITableView *RefundTableView;

@end

@implementation ApplyRefundFirst

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.navigationController setNavigationBarHidden:NO];
    [self addLeftBtn:[UIImage imageNamed:@"fanhui"] Action:@selector(backToPrevious)];
    self.title = @"退款类型";
    [self ApplyRefundTablView];
    
}

- (void)ApplyRefundTablView{
    
    self.RefundTableView.delegate = self;
    self.RefundTableView.dataSource = self;
    self.RefundTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    
    [self.RefundTableView registerNib:[UINib nibWithNibName:@"RefundTVBCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:@"RefundTVBCell"];
    
    
}

#pragma mark - TableViewDatasource
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 3;
}

-(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    
    RefundTVBCell * friend=[tableView dequeueReusableCellWithIdentifier:@"RefundTVBCell" forIndexPath:indexPath];
    
    if(friend==nil){
        friend=[[RefundTVBCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"RefundTVBCell"];
    }
    
    if (indexPath.row == 0) {
        
        
        
    }else if (indexPath.row == 1){
        
        
    }else if (indexPath.row == 2){
        
        
    }
    return friend;
}


#pragma mark TableViewDelegate
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    
    return 60;
    
}

-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{
    return 0;
}


-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    
    if (indexPath.row == 0) {
        ApplyRefundSecond * minecollect = [[ApplyRefundSecond alloc]init];
        [self.navigationController pushViewController:minecollect animated:YES];
    }else if (indexPath.row == 1){
        
        ApplyRefundSecond * minecollect = [[ApplyRefundSecond alloc]init];
        [self.navigationController pushViewController:minecollect animated:YES];
        
    }else{
        
        ApplyRefundSecond * minecollect = [[ApplyRefundSecond alloc]init];
        [self.navigationController pushViewController:minecollect animated:YES];
    }
}


@end
